<?php

class ContactValidator {


	public function validMessage($form){
		if($form['name'] == "")
		$error['name'] = true;
			
		if($form['ass'] == "")
		$error['ass'] = true;
			
		if($form['email'] == "")
		$error['email'] = true;

		if($form['phone'] == "")
		$error['phone'] = true;
			
		if($form['msg'] == "")
		$error['msg'] = true;

		if(isset($error))
		return  $error;

		else return null;
	}

}